package com.lwz.iterator;

public class ConcereteAggreate extends Aggreate {
	
	private String[] ss = null;
	
	public ConcereteAggreate(String[] ss){
		this.ss  = ss;
	}

	@Override
	Iterator createIterator() {
		return new ConcereteIterator(this);
	}
	
	public Object get(int index){
		Object obj = null;
		if(index<ss.length){
			obj = ss[index];
		}
		return obj;
	}
	
	public int size(){
		return ss.length;
	}

}
